<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
		</style>
		<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
		<script type="text/javascript">
			$(function(){
				$("#checked input:first").click(function(){
				$("#checked input").prop("checked",this.checked);
					
				})
			})
		</script>
	</head>
	<body>
		<div id="checked">
			<input type="checkbox" name="shop" id="" value="" />全选
			<input type="checkbox" name="shop" id="" value="" />商品1
			<input type="checkbox" name="shop" id="" value="" />商品2
			<input type="checkbox" name="shop" id="" value="" />商品3
			<input type="checkbox" name="shop" id="" value="" />商品4
			<input type="checkbox" name="shop" id="" value="" />商品5
			<input type="checkbox" name="shop" id="" value="" />商品6
		</div>
	</body>
</html>
